import request from '@/utils/request'

export default {
  findExampleListWithImage() {
    return request({
      url: '/example/findExampleListWithImage',
      method: 'post'
    })
  },
  getExampleById(id) {
    return request({
      url: '/example/getExampleById',
      method: 'post',
      data: {id}
    })
  },
  removeExampleById(id) {
    return request({
      url: '/example/removeExampleById',
      method: 'post',
      data: {id}
    })
  },
  saveExample(example) {
    return request({
      url: '/example/saveExample',
      method: 'post',
      data: example
    })
  },
  refreshExampleSort(exampleList) {
    return request({
      url: '/example/refreshExampleSort',
      method: 'post',
      data: exampleList
    })
  }
}
